<script type="text/javascript">

 $(function(){
	$.get("parameterCard/getUpdateBusiParamInfo",getUpdateCardBusiParamInfo,"json")
	
});
 function on_test(){
	 var cocReleaseDays=$("select[name='allowCoc']").val();
	 var chcReleaseDays=$("select[name='allowChc']").val();
	 if(cocReleaseDays=="0"){
		 document.getElementById("cocReleaseDays").readOnly=true;
		 document.getElementById("cocTransferBalanceDays").readOnly=true;
	 }else{
		 document.getElementById("cocReleaseDays").readOnly=false;
		 //20181210 hgl 修改以下1行
		 document.getElementById("cocTransferBalanceDays").readOnly=false;
	 }
	 if(chcReleaseDays=="0"){
		 document.getElementById("chcReleaseDays").readOnly=true;
		 document.getElementById("chcTransferBalanceDays").readOnly=true;
	 }else{
		 document.getElementById("chcReleaseDays").readOnly=false;
		//20181210 hgl 修改以下1行
		 document.getElementById("chcTransferBalanceDays").readOnly=false;
	 }
 }
</script>
<div class="pageContent">
	<form method="post" action="parameterCard/updateBusPara" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
		<div class="pageFormContent" layoutH="48">
		    <p>
				<label>卡产品名称：</label>
				<input id="cardpCodeByABM" name="cardpName"  type="text" size="20" class="required" readonly="readonly"/>
				
			</p>
			<p>
				<label>卡产品代码：</label>
				<input id="cardpByABM" name="cardpCode"  type="text" size="20" class="required" readonly="readonly"/>
				
			</p>
			<p>
				<label>客户唯一持有：</label>
				<select id="customerNo" name="customerNo" class="required" >
				<option value="0">否</option>
			    <option value="1">是</option>
				</select>
			</P>
			<p>
				<label>是否允许挂失：</label>
				<select id="isLoss" name="isLoss" class="required" >
			   <option value="0">否</option>
			    <option value="1">是</option>
				</select>
			</P>
			<p>
				<label>是否允许补卡：</label>
				<select id="allowCoc" name="allowCoc"  class=""  onchange="on_test()">
				<option value="0">否</option>
			    <option value="1">是</option>
				</select>
			</P>
			<p>
				<label>是否允许换卡：</label>
				<select id="allowChc" name="allowChc" class="" onchange="on_test()">
				<option value="0">否</option>
			    <option value="1">是</option>
				</select>
			</P>
		<p>
				<label>是否允许退卡：</label>
				<select id="isCardReturn" name="isCardReturn" class="" >
				<option value="0">否</option>
			    <option value="1">是</option>
				</select>
			</P>
          <p>
				<label>领卡天数：</label>
				<input name="releaseDays"  type="text" size="20" maxlength="4" />
			</P>
			<p>
				<label>补卡领卡天数：</label>
				<input id="cocReleaseDays" name="cocReleaseDays"  type="text" size="20" maxlength="4" />
			</P>
			<p>
				<label>换卡领卡天数：</label>
				<input  name="chcReleaseDays"  id="chcReleaseDays" type="text" size="20" maxlength="4" />
			</P>
			<p>
				<label>补卡余额转移约定天数：</label>
				<input  name="cocTransferBalanceDays" id="cocTransferBalanceDays" type="text" size="20" maxlength="4" />
			</P>
			<p>
				<label>换卡余额转移约定天数：</label>
				<input  name="chcTransferBalanceDays" id="chcTransferBalanceDays" type="text" size="20" maxlength="4" />
			</P>
		</div>
		<div class="formBar">
			<ul> 
				<li>
				<div class="buttonActive"><div class="buttonContent"><button id="submit" type="submit">提交</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>